#include <iostream>
#include <string.h>

using namespace std;

struct Bird {
    char species[25];
    int count;
    char location[25];
};

struct BirdWatcher {
    char name[50];
    int qualification_code;
};

void WatchTheBird(Bird* pB, BirdWatcher* pBW);
void WhatDidYouSeed(Bird* pB, BirdWatcher* pBW);

int main() {
    Bird bird;
    BirdWatcher person;

    cout << "观鸟程序\n";
    WatchTheBird(&bird, &person);
    WhatDidYouSeed(&bird, &person);
}

void WatchTheBird(Bird* pB, BirdWatcher* pBW) {
    strcpy(pB->species, "sparrow hawk");
    pB->count = 3;
    strcpy(pB->location, "Sandia Mountains");

    strcpy(pBW->name, "Ryan Andrew");
    pBW->qualification_code = 5;

}

void WhatDidYouSeed(Bird* pB, BirdWatcher* pBW) {
    cout << "观鸟者: " << pBW->name << "\n";
    cout << "等级: " << pBW->qualification_code << "\n";

    cout << "种类: " << pB->species << "\n";
    cout << "数量: " << pB->count << "\n";
}